﻿<%@ Page Language="VB" MasterPageFile="~/Masterpages/MaestraReporte.master" AutoEventWireup="false"
    CodeFile="TarjetaS.aspx.vb" Inherits="Reportes_TarjetaS" Title="Sanidad" %>

<%@ Register Assembly="ActiveReports.Web, Version=5.3.1436.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff"
    Namespace="DataDynamics.ActiveReports.Web" TagPrefix="ActiveReportsWeb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Estilos/StyleReportes.css" rel="Stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div align="center">
        <table align="center" width="420px">
            <tr>
                <td class="solocolor">
                    &nbsp;
                    <asp:Label ID="Label2" runat="server" ForeColor="White" Text="Tarjeta Sanidad"></asp:Label>
                </td>
            </tr>
        </table>
        <table align="center" width="420px">
            <tr>
                <td>
                    &nbsp;Animal:&nbsp;
                </td>
                <td class="formaTD">
                    <asp:TextBox ID="txtAnimal" runat="server" BorderWidth="1px" MaxLength="8" Width="80px"
                        AutoPostBack="True" TabIndex="1"></asp:TextBox>
                </td>
                <td>
                    &nbsp;Padre:&nbsp;
                </td>
                <td class="formaTD">
                    <asp:TextBox ID="txtPadre" runat="server" BorderWidth="1px" MaxLength="8" Width="80px"
                        AutoPostBack="True"></asp:TextBox>
                </td>
                <td>
                    &nbsp;Madre:&nbsp;
                </td>
                <td class="formaTD">
                    <asp:TextBox ID="txtMadre" runat="server" BorderWidth="1px" MaxLength="8" Width="80px"
                        AutoPostBack="True"></asp:TextBox>
                </td>
            </tr>
        </table>
    </div>
    <div align="center">
        <asp:GridView ID="gvAnimales" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
            CellPadding="3" PageSize="15" ToolTip="Vista predeterminada" CellSpacing="2"
            RowStyle-HorizontalAlign="Left" GridLines="Vertical" Style="margin-right: 0px"
            DataKeyNames="AnimalId">
            <PagerSettings PageButtonCount="20" Position="TopAndBottom" Mode="NumericFirstLast" />
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
            <Columns>
                <asp:CommandField ButtonType="Image" SelectImageUrl="~/images/print.png" ShowSelectButton="True" />
                <asp:BoundField DataField="Sexo" HeaderText="SX" />
                <asp:HyperLinkField DataNavigateUrlFields="animalid" DataNavigateUrlFormatString="~/Registro/general.aspx?animal={0}"
                    DataTextField="cveAnimal" HeaderText="Animal" Target="_self" />
                <asp:BoundField DataField="cveAnimal" HeaderText="Animal" Visible="false" />
                <asp:BoundField DataField="nombre" HeaderText="Nombre" />
                <asp:BoundField DataField="hierro" HeaderText="Hierro" />
                <asp:BoundField DataField="porcien_cs" HeaderText="% CS" />
                <asp:BoundField DataField="padre" HeaderText="Padre" Visible="false" />
                <asp:HyperLinkField DataNavigateUrlFields="id_padre" DataNavigateUrlFormatString="~/Registro/general.aspx?animal={0}"
                    DataTextField="padre" HeaderText="Padre" Target="_self" />
                <asp:BoundField DataField="madre" HeaderText="Madre" Visible="false" />
                <asp:HyperLinkField DataNavigateUrlFields="id_madre" DataNavigateUrlFormatString="~/Registro/general.aspx?animal={0}"
                    DataTextField="madre" HeaderText="Madre" Target="_self" />
                <asp:BoundField DataField="tienta_ac" HeaderText="NC" />
                <asp:BoundField DataField="tienta_ap" HeaderText="NP" />
                <asp:BoundField DataField="estatus" HeaderText="ST" />
                <asp:BoundField DataField="fechabaja" DataFormatString="{0:d}" HeaderText="Baja" />
            </Columns>
            <FooterStyle BackColor="#CCCCCC" ForeColor="White" Font-Bold="true" />
            <PagerStyle BackColor="#999999" ForeColor="White" HorizontalAlign="Center" Font-Bold="true" />
            <EmptyDataTemplate>
                No existen registros con la condición dada
            </EmptyDataTemplate>
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#D9D9E6" Font-Bold="True" ForeColor="Black" />
            <AlternatingRowStyle BackColor="#DCDCDC" />
        </asp:GridView>
    </div>
</asp:Content>
